package com.wyp168.jse;


import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;

/**
 * @ClassName MapDemo
 * @Description TODO
 * @Author wyp168
 * @Date 2022/7/8 17:20
 */
public class MapDemo {
    public static void main(String[] args) {

        Map<String,String> map = new HashMap<>();

        map.put("name","wyp123");
        map.put("age","wyp456");

//        map.entrySet().stream().map(o -> o.getKey()).filter();


//        Set<Map.Entry<String, String>> entries = map.entrySet();
//        List<String> collect = entries.stream().map(o -> o.getKey()).collect(Collectors.toList());
//        System.out.println(collect);
//        System.out.println(entries);
//
//        System.out.println(map);

    }
}
